<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/view/inc.jsp" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div class="dialog_form">
    <form id="fm" method="post" action="<%=contextPath%>/sys/codeItems/saveAndUpdate" novalidate>
        <input type="hidden" name="id" value="${codeItems.id}"/>
        <input type="hidden" name="codeCategoryId" value="${codeItems.codeCategoryId}"/>

        <div class="dialog_item">
            <label>名称:</label>
            <input id="name" name="name" class="categoryCode easyui-textbox" required="true" validType="length[0,20]"
                   value="${codeItems.name}">
        </div>
        <div class="dialog_item">
            <label>代码:</label>
            <input id="code" name="code" class="easyui-textbox" required="true" validType="length[0,20]"
                   value="${codeItems.code}">
        </div>
        <div class="dialog_item">
            <label>排序:</label>
            <input name="sortIndex" class="easyui-numberbox" validType="length[0,10]" value="${codeItems.sortIndex}">
        </div>

        <div class="dialog_item">
            <label>状态:</label>
            <input name="status" editable="false" value="${codeItems.status}" required="true"
                   class="easyui-combobox" data-options="valueField : 'code',
	    						textField : 'name', url:'<%=contextPath%>/sys/codeItems/byCategoryCode?categoryCode=status',
								panelHeight:'auto'
							">
        </div>
        <div class="dialog_item">
            <label>备注:</label>
            <input name="remark" class="easyui-textbox" data-options="multiline:true" validType="length[0,200]"
                   value="${codeItems.remark}"
                   style="height:80px">
        </div>
    </form>
</div>
</body>
</html>